package com.ruoyi.demo.service.impl;

import java.util.List;

import com.ruoyi.demo.mapper.EnvironmentdataMapper;
import com.ruoyi.demo.service.IEnvironmentdataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.demo.domain.Environmentdata;

/**
 * devService业务层处理
 * 
 * @author ruoyi
 * @date 2024-08-07
 */
@Service
public class EnvironmentdataServiceImpl implements IEnvironmentdataService
{
    @Autowired
    private EnvironmentdataMapper environmentdataMapper;

    /**
     * 查询dev
     * 
     * @param id dev主键
     * @return dev
     */
    @Override
    public Environmentdata selectEnvironmentdataById(Long id)
    {
        return environmentdataMapper.selectEnvironmentdataById(id);
    }

    /**
     * 查询dev列表
     * 
     * @param environmentdata dev
     * @return dev
     */
    @Override
    public List<Environmentdata> selectEnvironmentdataList(Environmentdata environmentdata)
    {
        return environmentdataMapper.selectEnvironmentdataList(environmentdata);
    }

    /**
     * 新增dev
     * 
     * @param environmentdata dev
     * @return 结果
     */
    @Override
    public int insertEnvironmentdata(Environmentdata environmentdata)
    {
        return environmentdataMapper.insertEnvironmentdata(environmentdata);
    }

    /**
     * 修改dev
     * 
     * @param environmentdata dev
     * @return 结果
     */
    @Override
    public int updateEnvironmentdata(Environmentdata environmentdata)
    {
        return environmentdataMapper.updateEnvironmentdata(environmentdata);
    }

    /**
     * 批量删除dev
     * 
     * @param ids 需要删除的dev主键
     * @return 结果
     */
    @Override
    public int deleteEnvironmentdataByIds(Long[] ids)
    {
        return environmentdataMapper.deleteEnvironmentdataByIds(ids);
    }

    /**
     * 删除dev信息
     * 
     * @param id dev主键
     * @return 结果
     */
    @Override
    public int deleteEnvironmentdataById(Long id)
    {
        return environmentdataMapper.deleteEnvironmentdataById(id);
    }
}
